home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96a.txt
/
000033_icon-group-sender _Fri Feb 2 02:56:56 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-09-05
|
2KB
Received: by cheltenham.cs.arizona.edu; Fri, 2 Feb 1996 12:42:23 MST
To: icon-group@cs.arizona.edu
Date: 2 Feb 1996 02:56:56 GMT
From: mustard@interlog.com
Message-Id: <4eruho$aj0@steel.interlog.com>
Organization: InterLog Internet Services
Sender: icon-group-request@cs.arizona.edu
References: <slrn4gnrln.dpt.rahardj@phad.cc.umanitoba.ca>
Reply-To: mustard@interlog.com
Subject: Re: processing utmp and/or wtmp with icon
Errors-To: icon-group-errors@cs.arizona.edu
Status: O
In <slrn4gnrln.dpt.rahardj@phad.cc.umanitoba.ca>, rahardj@cc.umanitoba.ca (Budi Rahardjo) writes:
>We are planning to write a program which converts utmp/wtmp file
>into somekind of database (delimitted, flat file would be good enough).
What's wrong with "fwtmp" that comes with your wtmp producer? (UNIX)
Or "who -a"? I certainly would have one of these in a pipeline to a simpler
program (awk (herasy ;-) to do the job. I do infact parse the output of
fwtmp with an awk script to detect login/out activity.
>The database is used to produces statistics such as usage, number of logins,
>how many hours one has logged in to a system this month, etc.
>We want to produce this stats in real time too.
>
>Actually, I have written this in perl but wanted to make it an executable.
What's an "executable"?
>Icon seems to be a natural approach ( don't want to go to C or C++).
Icon works but best on a text, not binary, (IMHO) file. But either perl
or icon implies shipping extra stuff with your code that _may_ make
support or portability more difficult.
Note that wtmp/utmp files are different on different *ix versions.
>Before I start rolling the design, has anybody done this?
>Any tips.